//
//  InterstitialViewController.m
//  TestDemo
//
//  Created by a on 2023/2/2.
//

#import "InterstitialViewController.h"
#import "InterstitialAdM.h"

@interface InterstitialViewController ()

@property (nonatomic,strong)InterstitialAdM * adM;

@end

@implementation InterstitialViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (InterstitialAdM *)adM{
    if (_adM  == nil) {
        _adM = [InterstitialAdM new];
        _adM.viewController = self;
        [_adM setupAd];
    }
    return _adM;
}

- (IBAction)loadAndShowClicked:(id)sender {
    [self.adM loadAdShow];
}

- (IBAction)loadAdClicked:(id)sender {
    [self.adM loadAd];
}

- (IBAction)showAdClicked:(id)sender {
    [self.adM showAd];
}


-(void)dealloc{
    NSLog(@"InterstitialViewController dealloc");
}

@end
